package activitytest.example.com.application;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;

import activitytest.example.com.application.view.SettingItemView;

/**
 * Created by zhanyihong on 2017/12/5.
 */

public class SettingActivity extends Activity{
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setting);

        initUpdata();
    }

    private void initUpdata() {
        final SettingItemView siv_updata=(SettingItemView)findViewById(R.id.siv_updata);
        siv_updata.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                boolean isCheck = siv_updata.isCheck();
                siv_updata.setCheck(!isCheck);
            }
        });
    }
}
